#ifndef _USART7__H
#define _USART7__H
#include "stdio.h"
#include "at32f435_437.h"
#include "at32f435_437_int.h"
//#include "delay.h"
#include "string.h"
#include "Task_mpu.h"

#define UART7_GPIO_CRM_CLK          CRM_GPIOB_PERIPH_CLOCK
#define UART7_TX_PIN                GPIO_PINS_4
#define UART7_RX_PIN                GPIO_PINS_3
#define UART7_GPIO                  GPIOB


#define UART7_TX_PIN_SOURCE         UART7_TX_PIN
#define UART7_RX_PIN_SOURCE         UART7_RX_PIN
#define UART7_PIN_MUX_NUM           GPIO_MUX_8
#define UART7_BUFLEN 								64

void Uart7_Init(uint32_t baudrate);

extern u8 Usart7_RXBUF[UART7_BUFLEN];

void Uart7Send(uint8_t *buff,uint8_t size);

#endif
